package com.sykj.springboot.test.designMode.proxyPattern;

public class DeptManager implements Human {

    private Human human;

    //部门经理代理了总经理
    public DeptManager() {
        this.human = new GeneralManager();
    }


    //代理总经理的行为
    @Override
    public void SendSalary() {
        human.SendSalary();
    }

    @Override
    public void Manager() {
        human.Manager();
    }
}
